import React from 'react'
import counterStore from '../../store/counterStore'

function CountUpdate() {
  return (
    <div>
      <button onClick={() => counterStore.increment(2)}>增加</button>
      <button onClick={() => counterStore.decrement(2)}>减少</button>
      <button onClick={() => counterStore.incrementAsync(2)}>延迟1S增加</button>
    </div>
  )
}

export default CountUpdate
